﻿using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Common.NotificationMessageRecord
{
    /// <summary>
    /// 通知消息记录
    /// </summary>
    public class NotificationMessageRecordRequestDto
    {
        /// <summary>
        /// 通知标题
        /// </summary>
        [Display(Name ="通知标题")]
        [StringLength(100,MinimumLength =4,ErrorMessage ="{0} 长度需在4至100个字符之间")]
        public string NotificationTitle { get; set; }
        /// <summary>
        /// 通知类型
        /// </summary>
        [Display(Name = "通知类型")]
        [Required(ErrorMessage ="{0} 为必选项")]
        public NotificationMessageRecordType NotificationType { get; set; }
        /// <summary>
        /// 通知参数
        /// </summary>
        [Display(Name = "通知参数")]
        public string NotificationParameters { get; set; }
        /// <summary>
        /// 接收者
        /// </summary>
        [Display(Name = "接收者")]
        [Range(1,100000, ErrorMessage = "{0} 为必选项")]
        public long AdminId { get; set; }
        /// <summary>
        /// 相关记录Id
        /// </summary>
        [Display(Name = "相关记录")]
        [Range(1, 1000000000, ErrorMessage = "{0} 为必选项")]
        public long RelatedRecordId { get; set; }
    }
}
